public class homework9 {
    public static void main(String[] args){
        int count = 0;
        for(int i=1;i<=100;i++){
            if(i%9==0){
                count++;
            }if(i/9==0){
                count++;
            }
        }
        System.out.println("1到100中有"+count+"个9.");
    }
}
